package my.mall.front.api.controller

import my.mall.common.pojo.CommonResp
import my.mall.common.util.RespUtils.success
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/home")
class HomeController {

    @GetMapping("/banner")
    fun bannerList(): CommonResp<List<String>> {
        val bannerList: MutableList<String> = ArrayList(3)
        bannerList.add("https://juhuixing-dts.oss-cn-shenzhen.aliyuncs.com/nlzvqw7jauvtnx6p8hts.jpg")
        bannerList.add("https://juhuixing-dts.oss-cn-shenzhen.aliyuncs.com/3bluuokv04qsdiunppk3.jpg")
        bannerList.add("https://juhuixing-dts.oss-cn-shenzhen.aliyuncs.com/dxzvhddk5b8olybkucdv.jpg")
        return success(bannerList)
    }
}
